<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html class="no-js css-menubar" lang="zh-cn">
<head>
    <?php $ddsa = 'abcdefghijklmnopqrstuvwxyz';?>
    <title><?php echo ($sysinfo[sitetitle]); ?></title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!-- 移动设备 viewport -->
    <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no,minimal-ui">
    <meta name="author" content="sqw.kaz2u.cn">
    <!-- 360浏览器默认使用Webkit内核 -->
    <meta name="renderer" content="webkit">
    <!-- 禁止百度SiteAPP转码 -->
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Cache-Control" content="no-cache,no-siteapp">
    <meta http-equiv="Expires" content="0">
    <!-- Chrome浏览器添加桌面快捷方式（安卓） -->
    <link rel="icon" type="image/png" href="http://sqw.kaz2u.cn/Public/images/favicon.png">
    <meta name="mobile-web-app-capable" content="yes">
    <!-- Safari浏览器添加到主屏幕（IOS） -->
    <link rel="icon" sizes="192x192" href="http://sqw.kaz2u.cn/Public/images/apple-touch-icon.png">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <!-- 样式 -->
    <link rel="stylesheet" href="/xin/css/weui.min.css">
    <link rel="stylesheet" href="/xin/css/jquery-weui.min.css">
    <link rel="stylesheet" href="/xin/css/base.css">
    <link rel="stylesheet" href="/xin/css/animate.css">
    <!--[if lte IE 9]>
    
    <![endif]-->
    <!-- 图标 CSS-->
    <link rel="stylesheet" href="/xin/css/font_619806_a9lgrdc9i0jxlxr.css">
    <link rel="stylesheet" href="/xin/css/iconfont.css">
    <link rel="stylesheet" href="/xin/css/iconfont_1.css">
	 <link href="/ge/css/style.css" type="text/css" rel="stylesheet" />

<link href="/Public/Weixin/css/index.css?v=<?php echo rand(0,99);?>" rel="stylesheet" type="text/css">
    <!-- 插件 -->
    <script src="/xin/js/jquery.min.js"></script>
    <!--<script src="/xin/js/template.min.js"></script>-->
	<style>
		marquee li{display:inline}
		.footer { display:none;}
	</style>
  <script>

$(document).ready(function () { 


      $('#sign').click(function(){
        $('#dengdai').show();
        $.post("<?php echo U('ajaxchai2');?>",null,function(res){
           $('#dengdai').hide();
          //alert(JSON.stringify(res));
           if(res.code == 2){
                $('.msgbox .txt').text('恭喜您获得 '+res.hbe+' 元，已自动加到余额!');
             	$('.msgbox').show();
             	$("input[name='msgbox']").val(1);
           }else if(res.code == 1){
                $('.msgbox .txt').text('今日已签到');
                $('.msgbox').show();
           }else{
              $('.msgbox .txt').text('系统繁忙，请稍候再试！');
              $('.msgbox').show();
           }
        },'json');
    });


});

</script>
</head>
<body>
<main class="home-page">
    <div class="page-container" id="admui-pageContent">
      <div style="position:fixed;top:0.3rem;right:0.3rem;z-index:10;line-height:0.3rem;">
		  <a href="http://<?php echo $_SERVER['HTTP_HOST']?>/weixin110.html" style="color:#000;">
		  <img src="Public/image/warn.png" style="width:0.5rem;"/>
		  <br>投诉
		  </a>
	  </div>

       <div class="page page-redpack-index">
			<div class="page-header">
                <div class="marquee-bonus-record" id="marqueeBonusRecordDom">
                        <marquee behavior="" direction="" style="color:white;">
                           <!-- <li>免费招代理 月佣金过万</li> -->
						</marquee>
                </div>

                <div class="account margin-top-20">
                     
                    <div class="account-item" style="border-radius: 2px 0 0 2px;">
                        <div class="item-title">
                            <span>余额:</span>
                            <span class="text-warning"><?php echo ($money); ?></span>
                        </div>
                    </div>
                </div>
                <div class="notice" style="">
                     <ul class="notice-list">
                         <li class="notice-item" style="list-style:none"><?=$message?></li>
                     </ul>
                 </div>

                <div class="notice" id="marqueeBonusRecordDom" style="color: rgb(203,133,77);">
					<marquee style="font-size: 0.35rem;" behavior="" direction="">
					</marquee>
                </div>
            </div>
			
			<div class="index1 clearfix">
            	<div id="bigRedpackDom" class="chip_row">
                    <div class='chip' data-id="1">
						<a href="/index.php?m=Wap&c=Chongzhi&a=chong&ctype=1&hbid=7">
                        <div class='chip_item'>
                            <div><span style="font-size: 0.5rem;">10</span>元 抢1~200元</div>
                        </div>
						</a>
                    </div>    
					 <div class='chip' data-id="1">
						  <a href="/index.php?m=Wap&c=Chongzhi&a=chong&ctype=1&hbid=4">
                        <div class='chip_item'>
                            <div><span style="font-size: 0.5rem;">20</span>元 抢2~400元</div>
                        </div>
						</a>
                    </div>    
					 <div class='chip' data-id="1">
						  <a href="/index.php?m=Wap&c=Chongzhi&a=chong&ctype=1&hbid=6">
                        <div class='chip_item'>
                            <div><span style="font-size: 0.5rem;">50</span>元 抢5~1000元</div>
                        </div>
						</a>
                    </div>    
					 <div class='chip' data-id="1">
						  <a href="/index.php?m=Wap&c=Chongzhi&a=chong&ctype=1&hbid=8">
                        <div class='chip_item'>
                            <div><span style="font-size: 0.5rem;">100</span>元 抢10~2000元</div>
                        </div>
						</a>
                    </div> 
                  
                  
                  <div class='chip' >
                        <div class='chip_item' id="sign">
                            <div><span style="font-size: 0.3rem;"><?=$flag?'每日签到最高2元':'已签到'?></span> </div>
                        </div>
                    </div>  
				  

					<div class="bottom-img">
					</div>
            
					<div class="redpack_pub">
						<div class="pub_closes">
							<div class="pub_title"></div>
							<div class="pub_close">X</div>
						</div>
						<div class="pub_content">
						</div>
            		</div>
        	</div>
        	<input type="hidden" name="payment_msg" value="">
        	<!--<script src="/xin/js/newsticker.min.js"></script>-->
		</div>
		
		<footer class="home-footer">
			<div class="weui-tabbar">
				<a href="<?php echo U('Index/index?randres='.rand(100,999));?>" class="weui-tabbar__item dl ">
					<div class="weui-tabbar__icon">
						<img class="iconfont" src="/xin/picture/jie.png"  aria-hidden="true" alt="">
					</div>
					<p class="weui-tabbar__label">抢红包</p>
				</a>
				
				
				<a href="<?php echo U('Ucenter/index?randres='.rand(100,999));?>" class="weui-tabbar__item dl ">
					<div class="weui-tabbar__icon">
						<img class="iconfont" src="/xin/picture/jie.png"  aria-hidden="true" alt="">
					</div>
					<p class="weui-tabbar__label">代理</p>
				</a>
				<a href="<?php echo U('Index/kefu');?>" class="weui-tabbar__item kf ">
					<div class="weui-tabbar__icon">
						<img class="iconfont" src="/xin/picture/jie.png"  aria-hidden="true" alt="">
					</div>
					<p class="weui-tabbar__label">客服</p>
				</a>
			</div>
		</footer>
	</div>
</div>
<script>

$(document).ready(function () { 

   var zhanshiboxsetInterval;

   $(function(){	

      /*   

	   if( String(location).indexOf("Wap&c=Index&a=index") == -1 && String(location).indexOf("Wap&c=Index&a=hb") == -1 ){

		    $.post("<?php echo U('Ajax/checkzhanghu');?>",{},function(res){

				if(res.code==1){

					 alert('请先拆红包');

					 $.post("<?php echo U('Ajax/gethbid');?>",{hbid:<?php echo (intval($hb[id])); ?>},function(res){

					     location.href='<?php echo U("hb?hbid=");?>'+res.hbid;

					 },'json');

				}

			},'json');

	   }

	   */

	   $.post("<?php echo U('Ajax/getfaqiancishu');?>",{},function(res){});

	   $.post('<?php echo U("Ajax/fayongjin");?>',{},function(){	});

	   $.post('<?php echo U("Ajax/checkuserhb");?>',{},function(){	});

	   zhanshiboxsetInterval = setInterval(zhanshibox, 10000);

	   zhanshibox();

   });

   $('#qianghongbao').click(function(){

	   $.post("<?php echo U('Ajax/gethbid');?>",{hbid:<?php echo (intval($hbid)); ?>},function(res){

			location.href='<?php echo U("Index/hb?hbid=");?>'+res.hbid;

	   },'json');

   });

   $('#checkdaili').click(function(){

	   $.post("<?php echo U('Ajax/checkdaili');?>",{},function(res){

		   if(res.code == 0){

			   location.href='<?php echo U("Index/kefu");?>';

		   } else {

			   location.href='<?php echo U("Index/daili");?>';

		   }

	   },'json');

   });

   $('.msgbox .but').click(function(){

	    var msgbox = $("input[name='msgbox']").val();

		if(msgbox == 1){

            $.post("<?php echo U('Ajax/checkzhanghu');?>",{hbid:<?php echo (intval($hbid)); ?>},function(res){

				if(res.code==1){

                     location.href = "<?php echo U('Index/index');?>";

				} else {

                     location.href = "<?php echo U('Index/index');?>";

				}

			},'json');

			return false;

		}

		if(msgbox == 2){

            $.post("<?php echo U('Ajax/checkzhanghu');?>",{hbid:<?php echo (intval($hbid)); ?>},function(res){

				if(res.code==1){

					location.href = "<?php echo U('Zhuanpan/index');?>";

				} else {

				    location.href = "<?php echo U('Chongzhi/chong?ctype=2&hbid='.$hbid);?>";

				}

			},'json');

			return false;

		}

		if(msgbox == 3){

            $.post("<?php echo U('Ajax/checkzhanghu');?>",{hbid:<?php echo (intval($hbid)); ?>},function(res){

				if(res.code==1){

					location.href = "<?php echo U('Guaguale/index');?>";

				} else {

				    location.href = "<?php echo U('Chongzhi/chong?ctype=4&hbid='.$hbid);?>";

				}

			},'json');

			return false;

		}

		if(msgbox == 4){

			location.href = "<?php echo U('Ucenter/index');?>";	

			return false;

		}

		$('.msgbox').hide();

   });   

});

function zhanshibox(){

	$.post("<?php echo U('Ajax/zhanshibox');?>",{},function(res){	 

	    $('.zhanshibox').show(500);

	    if(res.code == 1){

		    $('.zhanshibox').hide();

			clearInterval(zhanshiboxsetInterval);

		}   

		$('.zhanshibox p').html(res.html);

		$('.zhanshibox p').fadeIn(500);

	},'json');

	setTimeout(function(){$('.zhanshibox p').fadeOut(500);}, 8000);

}

</script>

<style>

.zhanshibox { position: fixed; top: 0; left: 0; right: 0; height: 24px; background-color: rgba(0,0,0,0.3); text-align: center; font-size: 12px; line-height: 24px; color: #FFF; display: none; z-index: 9; }

.zhanshibox p { display: none; }

.zhanshibox span { color: #3F0; border: #3F0 1px solid; padding-left: 2px; padding-right: 2px; border-radius: 2px; }

</style>

<div class="msgbox">

  <input type="hidden" value="0" name="msgbox">

  <!--

      0无跳转 

      1拆红包 

      2转盘 

      3刮刮卡

      4个人中心

  -->

  <div class="box">

    <p class="title">提示</p>

    <p class="txt">恭喜您获得0元红包</p>

    <p class="but">确定</p>

  </div>

</div>

<div class="zhanshibox">

  <p></p>

</div>

<div id="dengdai">

    <div class="loading">

           <span></span>

           <span></span>

           <span></span>

           <span></span>

           <span></span>

    </div>

</div>

<div style="height:60px;"></div>

<script>

$(document).ready(function(){

    $('.toggle-sub-menu').click(function(){

        //alert(JSON.stringify(this.dataset));

        var selector = '#' + this.dataset.subMenuId;

        

        $('.sub-menu').hide();

        $(selector).fadeIn();

    })

});

</script>

<style>

.sub-menu {

	background: #333333;

    /* height: 50px; */

	position: fixed;

    /* left: 0; *//* bottom: 0; *//* right: 0; */

	padding: 9px 3px;

	width: 20%;

	/*font-size: 0.8em;*/

	

	display: none;

}



.sub-menu li:first-child {

	padding: 1px 0 6px 0;

}

.sub-menu li {

	/*width: 25%;*/

	text-align: center;

	/* float: left; */

	color: #FFF;

	/*border-right: #FFF 1px solid;*/

	border-bottom: darkgrey 1px solid;

	line-height: 14px;

	padding: 6px 0;

}



.sub-menu li:last-child {

	border: none;

	padding: 6px 0 0 0;

}



.sub-menu li a {

	color: #FFF;

}



</style>

<div id="sub-menu-more-game" class="sub-menu" style="bottom: 50px; left: 26%;">

 <!-- <ul>

    <li><a href="<?php echo U('Zhuanpan/index?randres='.rand(100,999));?>">转盘</a></li>

    <li><a href="<?php echo U('Guaguale/index?randres='.rand(100,999));?>">刮刮乐</a></li>

    <li><a href="<?php echo U('Saolei/index?randres='.rand(100,999));?>">扫雷</a></li> 

  </ul>  -->

</div>

<div id="sub-menu-free-game" class="sub-menu" style="bottom: 50px; left: 20%">

  <ul>

    <li><a href="<?php echo U('Checkin/index?randres='.rand(100,999));?>">签到</a></li>

    <li><a href="<?php echo U('Appraise/scoreboard?randres='.rand(100,999));?>">分享有奖</a></li>

  </ul>

</div>
<link rel="stylesheet" href="/xin/css/weui.min.css">
    <link rel="stylesheet" href="/xin/css/jquery-weui.min.css">
    <link rel="stylesheet" href="/xin/css/base.css">
    <link rel="stylesheet" href="/xin/css/animate.css">
<link rel="stylesheet" href="/xin/css/font_619806_a9lgrdc9i0jxlxr.css">
    <link rel="stylesheet" href="/xin/css/iconfont.css">
    <link rel="stylesheet" href="/xin/css/iconfont_1.css">
<footer class="footer">
    <div class="weui-tabbar">
        <a href="<?php echo U('Index/index?randres='.rand(100,999));?>" class="weui-tabbar__item dl ">
            <div class="weui-tabbar__icon">
                <img class="iconfont" src="/xin/picture/jie.png"  aria-hidden="true" alt="">
            </div>
            <p class="weui-tabbar__label">抢红包</p>
        </a>
	
        <a href="<?php echo U('Ucenter/index?randres='.rand(100,999));?>" class="weui-tabbar__item dl ">
            <div class="weui-tabbar__icon">
                <img class="iconfont" src="/xin/picture/jie.png"  aria-hidden="true" alt="">
            </div>
            <p class="weui-tabbar__label">代理</p>
        </a>
        <a href="<?php echo U('Index/kefu');?>" class="weui-tabbar__item kf ">
            <div class="weui-tabbar__icon">
                <img class="iconfont" src="/xin/picture/jie.png"  aria-hidden="true" alt="">
            </div>
            <p class="weui-tabbar__label">客服</p>
        </a>
    </div>
</footer>


<!-- 插件 -->
<!--<script src="/xin/js/font_619806_a9lgrdc9i0jxlxr.js"></script>
<script src="/xin/js/jquery-weui.min.js"></script>-->
</body>
</html>